package com.blahti.example.drag2;



import com.blahti.example.drag2.R.xml;


import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.drawable.Drawable;
import android.os.Bundle; 

import android.preference.PreferenceActivity; 
import android.preference.PreferenceManager;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.LinearLayout;
import android.widget.TextView;

public class ShowSettings extends PreferenceActivity { 
	public static final String OPT_GPS = "USE_GPS";
	public static final boolean GPS_DEF = false;

	@Override 
	protected void onCreate(Bundle savedInstanceState) { 
		super.onCreate(savedInstanceState); 
		addPreferencesFromResource(R.xml.settings);
		LinearLayout mLayout =(LinearLayout) findViewById(R.xml.settings);
		//Drawable d=getResources().getDrawable(R.layout.open_screen);
		//mLayout.setBackgroundDrawable(d);
	}
	
	
	public static boolean getGPS(Context context) {
		return PreferenceManager.getDefaultSharedPreferences(context)
		.getBoolean(OPT_GPS, GPS_DEF);
	}
} 